package com.zch.spring_demo.work.controller;

import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author biscuit
 * @data 2018/01/15
 */
@RestController
public class CustomeController {
    @Value("#{base.url}")
    @Setter
    private String url;
    @RequestMapping("/hello")
    public String index() {
        System.out.println(url);
        return "Hello world";
    }

}
